package com.sendi.system.quaztz;

import org.quartz.Job;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;

import com.sendi.system.bean.PreloadBeanconfig;

// add chenjunliang 2010-11-05
public class ReloadJob implements Job {
	private PreloadBeanconfig preloadBeanconfig;
	public PreloadBeanconfig getPreloadBeanconfig() {
		return preloadBeanconfig;
	}
	public void setPreloadBeanconfig(PreloadBeanconfig preloadBeanconfig) {
		this.preloadBeanconfig = preloadBeanconfig;
	}

	public void execute(JobExecutionContext arg0) throws JobExecutionException {
		// TODO Auto-generated method stub
		System.out.println("reload begin....");
		preloadBeanconfig.reloadConfig();
		System.out.println("reload success....");
	}

}
